﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using StoreRepositorys;

namespace StoreIGet.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class MySqlsController : ControllerBase
    {
        public readonly MySqlSugarDbcontext _dbcontext;
        public MySqlsController(MySqlSugarDbcontext dbcontext)
        {
            _dbcontext = dbcontext;
        }

        [HttpGet]
        public string CreateData()
        {
            _dbcontext.CreateTable();
            return "ok";
        }
    }
}
